package com.ygp.jmm.visible;


//import com.ygp.utils.Sleeper;
//import lombok.extern.slf4j.Slf4j;

//@Slf4j(topic = "c.Visible")
public class Visible3 {
    static volatile boolean runCondition = true;

    public static void main(String[] args) {
        Thread t = new Thread(() -> {
            while (true) {
                if (!runCondition) {
                    break;
                }
            }
        });
        t.start();
        runCondition = false;
    }
}
